﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xmenu.aspx.cs" Inherits="HY.WEB.SYS._xmenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form id="form1" runat="server">

    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2"  />
    
    <ext:Panel ID="Panel2" runat="server" Height="250px" ShowBorder="True" AutoWidth="true"  
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="设定" >
      
        <Items>     
       
                      
  <ext:Panel ID="Panel1" Title="一级菜单 " EnableBackgroundColor="true" BoxFlex="2" runat="server"  Height="400px" 
                BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="true">                 
        <Items>                                                   
            <ext:Grid ID="Grid1" Title="主菜单"   Height="200px"    PageSize="10" ShowBorder="false"  
                ShowHeader="false"  AllowPaging="true"  AutoScroll="true"  AllowSorting="true"  
        runat="server"  DataKeyNames="sid"     EnableCheckBoxSelect="True"  AutoPostBack="true" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" onrowcommand="Grid1_RowCommand" 
                OnSort="Grid1_Sort" >      
                 <Toolbars>
            <ext:Toolbar ID="Toolbar3" runat="server">
                <Items>
                    <ext:Button ID="Button2" Text="删除选中项" Icon="Delete" OnClick="btnDelete1_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>     
             <ext:BoundField Width="30px" DataField="isorder" HeaderText="序号"  SortField="isorder"/>
            <ext:LinkButtonField Width="90px" CommandName="sub" HeaderText="名称"  DataTextField="m_name" SortField="m_name"  />            
             <ext:BoundField Width="30px" DataField="showstatus" HeaderText="显示"  SortField="showstatus"/>
             <ext:BoundField Width="30px" DataField="m_link" HeaderText="连接" />
            <ext:LinkButtonField Width="50px" CommandName="edit" Icon="TableEdit"   HeaderText="修改" /> 
        </Columns>
    </ext:Grid>          

      <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px"  EnableBackgroundColor="true"  Title="添加｜编辑" runat="server" ShowBorder="false" ShowHeader="false" AutoScroll="true" >
         <Items>
             <ext:HiddenField ID="hidsid" runat="server"></ext:HiddenField>    
            <ext:TextBox ID="txtname" runat="server" Label="名称" Text=""  Required="true"    ShowRedStar="true">    </ext:TextBox>
            <ext:TextBox ID="txtord" runat="server" Label="排序" Text="0"  Required="true"    ShowRedStar="true">    </ext:TextBox>
            <ext:TextBox ID="txtlink" runat="server" Label="连接网址" Text="" >    </ext:TextBox>           
            <ext:CheckBox ID="chbsh" runat="server" Label="是否有效" Checked="true" ></ext:CheckBox>
            <ext:CheckBox ID="chblev" runat="server" Label="是否节点"  Checked="false"></ext:CheckBox>
            <ext:Button ID="btsave" runat="server" Text="保存" OnClick="btsave1_Click" >
             </ext:Button>
          </Items>
    </ext:SimpleForm>

                </Items>
            </ext:Panel>

          
  <ext:Panel ID="Panel4" Title="二级菜单 " EnableBackgroundColor="true" BoxFlex="2" runat="server"  Height="400px" 
                BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="true">                 
        <Items>                                                   
    <ext:Grid ID="Grid2" Title="二级菜单"       PageSize="10" ShowBorder="false"  Height="200px" 
                ShowHeader="false"  AllowPaging="true"  AutoScroll="true"  AllowSorting="true" 
        runat="server"  DataKeyNames="sid"     EnableCheckBoxSelect="True"  AutoPostBack="true" 
        OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" onrowcommand="Grid2_RowCommand"   OnSort="Grid2_Sort" >      
                 <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="Button1" Text="删除选中项" Icon="Delete" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
     
               <ext:BoundField Width="30px" DataField="isorder" HeaderText="序号"  SortField="isorder"/>
            <ext:LinkButtonField Width="90px" CommandName="sub" HeaderText="名称"  DataTextField="m_name" SortField="m_name"  />            
             <ext:BoundField Width="30px" DataField="showstatus" HeaderText="显示"  SortField="showstatus"/>
             <ext:BoundField Width="30px" DataField="lev" HeaderText="节点" />
             <ext:BoundField Width="90px" DataField="m_link" HeaderText="连接" />
            <ext:LinkButtonField Width="50px" CommandName="edit" Icon="TableEdit"   HeaderText="修改" />         

        </Columns>
    </ext:Grid>          

      <ext:SimpleForm ID="SimpleForm2" BodyPadding="5px"  ShowBorder="false"  ShowHeader="false" EnableBackgroundColor="true" Title="添加｜编辑" runat="server" AutoScroll="true" >
         <Items>
          <ext:HiddenField ID="hidsid2" runat="server">
             </ext:HiddenField>    
        <ext:DropDownList ID="ddlmenu2" runat="server" Label="一级菜单" AutoPostBack="true"   >             
             </ext:DropDownList>  
          <ext:TextBox ID="txtname2" runat="server" Label="名称" Text=""  Required="true"    ShowRedStar="true">    </ext:TextBox>
          <ext:TextBox ID="txtord2" runat="server" Label="排序" Text="1"  Required="true"    ShowRedStar="true">    </ext:TextBox>
          <ext:TextBox ID="txtlink2" runat="server" Label="连接网址" Text="" >    </ext:TextBox>
           
           <ext:CheckBox ID="chbsh2" runat="server" Label="是否有效" Text=""  Checked="true"></ext:CheckBox>
           <ext:CheckBox ID="chblev2" runat="server" Label="是否节点" Text=""  Checked="true"></ext:CheckBox>

           <ext:Button ID="Button3" runat="server" Text="保存" OnClick="btsave2_Click" >
             </ext:Button>
            </Items>
    </ext:SimpleForm>


                </Items>

            </ext:Panel>


          <ext:Panel ID="Panel3" Title="三级菜单" EnableBackgroundColor="true" BoxFlex="2" Height="400px"  runat="server"
                BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="true">
        
                <Items>
                           
                                          
            <ext:Grid ID="Grid3" Title="三级菜单"   Height="200px"  PageSize="10" ShowBorder="false" ShowHeader="false" AllowPaging="true"  AutoScroll="true" 
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid"  AutoPostBack="true"   onrowcommand="Grid3_RowCommand" 
        OnPageIndexChange="Grid3_PageIndexChange" EnableRowNumber="True" OnSort="Grid3_Sort"   AllowSorting="true" >
                  <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete3_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
             <ext:BoundField Width="30px" DataField="isorder" HeaderText="序号"  SortField="isorder"/>
            <ext:LinkButtonField Width="90px"  HeaderText="名称"  DataTextField="m_name" SortField="m_name"  />            
             <ext:BoundField Width="30px" DataField="showstatus" HeaderText="显示"  SortField="showstatus"/>
             <ext:BoundField Width="90px" DataField="m_link" HeaderText="连接" />
            <ext:LinkButtonField Width="50px" CommandName="edit" Icon="TableEdit"   HeaderText="修改" />  

                  
        </Columns>
    </ext:Grid>          
      <ext:SimpleForm ID="SimpleForm3" BodyPadding="5px"  ShowBorder="false"  ShowHeader="false" EnableBackgroundColor="true" Title="添加｜编辑" runat="server" AutoScroll="true" >
         <Items>
             <ext:HiddenField ID="hidsid3" runat="server">
             </ext:HiddenField>    
               <ext:DropDownList ID="ddlmenu3" runat="server" Label="二级菜单" AutoPostBack="true"   >             
             </ext:DropDownList>  
          <ext:TextBox ID="txtname3" runat="server" Label="名称" Text=""  Required="true"    ShowRedStar="true">    </ext:TextBox>
          <ext:TextBox ID="txtord3" runat="server" Label="排序" Text="1"  Required="true"    ShowRedStar="true">    </ext:TextBox>
          <ext:TextBox ID="txtlink3" runat="server" Label="连接网址" Text="" >    </ext:TextBox>
           
           <ext:CheckBox ID="chbsh3" runat="server" Label="是否有效" Text=""  Checked="true"></ext:CheckBox>
           <ext:CheckBox ID="chblev3" runat="server" Label="是否节点" Text=""  Checked="true"></ext:CheckBox>

           <ext:Button ID="Button4" runat="server" Text="保存" OnClick="btsave3_Click" >
             </ext:Button>
                       </Items>
    </ext:SimpleForm>


                </Items>

            </ext:Panel>

 
        </Items>
    </ext:Panel>

    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
